package main

import (
	"duanju-mq/handle"
)

type DuanjuApiBaseData struct {
	Action  string
	Uid     int
	T       int64
	RawData string
}

func doDuanjuApiData(t *DuanjuApiBaseData) {
	switch t.Action {

	case "AddFeedBack": //反馈
		handle.HandleAddFeedBack(t.RawData)
		break
	case "UserAnalyse": //用户数据
		handle.HandleUserAnalyse(t.RawData)
		break
	case "UserOpLog": //用户操作日志
		handle.HandleUserOplog(t.RawData)
		break
	case "PromotionLink": //推广链接数据统计
		handle.HandlePromotionLink(t.RawData)
		break
	case "UnlockHistory": //用户所有解锁历史
		handle.HandleUnlockHistory(t.RawData)
		break
	case "UnlockFilmEpisodes": //用户的影片章节解锁情况，以影片为单位
		handle.HandleUnlockFilmEpisodes(t.RawData)
		break
	case "DecreaseHistoryBonus": //扣减 bonus_history 表
		handle.HandleDecreaseBonus(t.RawData)
		break
	}
}
